<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*
                    ES6运行我们按着一定的模式从数组和对象中取值，对变量进行赋值
                    这成为解构赋值
                    1.数组解构
                        const F4 = ['F1','F2','F3','F4'];
                        let [c1,c2,c3,c4] = F4;
                        console.log(c1);
                        console.log(c2);
                        console.log(c3);
                        console.log(c4);
                    2.对象解构
                        const ZHAO = {
                            name: 'zhaobenshan',
                            age: 18,
                            xiaopin: function() {
                                console.log('我可以');
                            }
                        }
                        let {
                            name,
                            age,
                            xiaopin
                        } = ZHAO;
                */
    </script>
</body>

</html>